package com.js.core.exception;

import lombok.Getter;
import lombok.Setter;

/**
 * @author ygl
 * @create 2018-10-26
 * @DESCRIPTION 基础的异常类
 **/
public class BaseException extends RuntimeException {

    @Setter
    @Getter
    private int status = 500;

    public BaseException(String message, int status) {
        super(message);
        this.status = status;
    }
    public BaseException(String message) {
        super(message);
    }
}
